<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp"%>
<script type="text/javascript">
function changePwdSave(){
	var onePwd = $('#newPwd').val();
	var twoPwd = $('#sruePwd').val();
	if(onePwd!=twoPwd){
		$.messager.show({
			msg : '两次输入的密码不一致！'
		});
		return false;
	}
	CQOA.formSubmit($('#changePwdForm'),ctx+'/sm/User!changePwdSave.action',function(o){
		if(o.success){
			showHideFun('changePasswordWin','close');
		}
		$.messager.show({
			msg : o.msg
		});
	},{});
};
</script>
<s:form id="changePwdForm">
<table class="dataTable" >
	<tr>
		<td width="80px">原密码:</td>
		<td width="70%"><s:password id="oldPwd" name="oldPwd" cssClass="easyui-validatebox" validType="length[1,20]" notnull="true"></s:password></td>
	</tr>
	<tr>
		<td width="80px">新密码:</td>
		<td width="70%"><s:password id="newPwd" name="newPwd" cssClass="easyui-validatebox" validType="length[1,20]" notnull="true"></s:password></td>
	</tr>
	<tr>
		<td width="80px">确认密码:</td>
		<td width="70%"><s:password id="sruePwd" name="sruePwd" cssClass="easyui-validatebox" validType="length[1,20]" notnull="true" /></td>
	</tr>
</table>
</s:form>
<div style="height: 30px;text-align: center;">
	<a href="#" class="easyui-linkbutton" iconCls="icon-back" onclick="showHideFun('changePasswordWin','close')">返回</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="changePwdSave()">保存</a>
</div>